package com.itany.corejava.code07_面向对象.封装;

/**
 * @author 石小俊
 * @date 2023年04月18日 16:48
 */
public class Test02_练习 {

    public static void main(String[] args) {
        Employee employee = new Employee("admin", 8000.0, "男", 12);
        employee.setName("alice");
        employee.setAge(20);
        employee.setSalary(9000.0);
        System.out.println(employee.getName());
        System.out.println(employee.getSalary());
        System.out.println(employee.getGender());
        System.out.println(employee.getAge());

        employee.show();
        employee.work();
    }

}
